/**
 * Created by weibo on 15-8-3.
 */

var app = angular.module('statisticservice', []);

app.factory('StatisticService', function($http, BaseService) {
    return {
        statistic_hospital: function(province, start, end, hospital, success) {
            $http.get(BaseService.baseUrl + '/statistic/statistic_hospital?province='+province+'&hospital=' + hospital + '&start=' + start + "&end=" + end).success(success);
        },

        statistic_doctor: function(province, start, end, hospital, success) {
            $http.get(BaseService.baseUrl + '/statistic/statistic_doctor?province='+province+'&hospital=' + hospital + '&start=' + start + "&end=" + end).success(success);
        }
    }
});
